package mysql

import "github.com/zeromicro/go-zero/core/stores/sqlx"

var _ TbFutuRankListModel = (*customTbFutuRankListModel)(nil)

type (
	// TbFutuRankListModel is an interface to be customized, add more methods here,
	// and implement the added methods in customTbFutuRankListModel.
	TbFutuRankListModel interface {
		tbFutuRankListModel
		withSession(session sqlx.Session) TbFutuRankListModel
	}

	customTbFutuRankListModel struct {
		*defaultTbFutuRankListModel
	}
)

// NewTbFutuRankListModel returns a model for the database table.
func NewTbFutuRankListModel(conn sqlx.SqlConn) TbFutuRankListModel {
	return &customTbFutuRankListModel{
		defaultTbFutuRankListModel: newTbFutuRankListModel(conn),
	}
}

func (m *customTbFutuRankListModel) withSession(session sqlx.Session) TbFutuRankListModel {
	return NewTbFutuRankListModel(sqlx.NewSqlConnFromSession(session))
}
